﻿// My methods here.
//-----------------------------------------------------------------------
// <Copyright file=YouTube company=DHPD>
// Copyright (c) DHPD Corporation (http://dhpd.edu.vn). All rights reserved.
// </copyright>
// <author>HP</author>
//-----------------------------------------------------------------------


using System;
using System.Collections.Generic;
using TV.DAT;
using TV.ENT;
using TV.Models;

namespace TV.BUS
{
    /// <summary>
    /// This is busYouTube class
    /// </summary>

    public class busYouTube
    {
        public busYouTube()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public void createEdit(entYouTube entYT)
        {
            datYouTube datYT = new datYouTube();
            datYT.createEdit(entYT);
        }
        public List<entYouTube> getAll(int trangthai)
        {
            datYouTube datYT = new datYouTube();
            List<entYouTube> lst = new List<entYouTube>();
            lst = datYT.getAll(trangthai);
            return lst;
        }
        public List<entYouTube> getAll(ref PagingInfoModel page)
        {
            datYouTube datYT = new datYouTube();
            List<entYouTube> lst = new List<entYouTube>();
            lst = datYT.getAll(ref page);
            return lst;
        }
        public List<entYouTube> getAll(int trangthai,ref PagingInfoModel page)
        {
            datYouTube datYT = new datYouTube();
            List<entYouTube> lst = new List<entYouTube>();
            lst = datYT.getAll(trangthai,ref page);
            return lst;
        }
        public List<entYouTube> getAllByForeignKey(int Id, ref PagingInfoModel page)
        {
            datYouTube datYT = new datYouTube();
            List<entYouTube> lst = new List<entYouTube>();
            lst = datYT.getAllByForeignKey(Id, ref page);
            return lst;
        }
        public entYouTube getInfo(int Id)
        {
            datYouTube datYT = new datYouTube();
            entYouTube entYT = new entYouTube();
            entYT = datYT.getInfo(Id);
            return entYT;
        }
        public bool delete(int Id)
        {
            datYouTube datYT = new datYouTube();
            datYT.delete(Id);
            return true;
        }
    }
}
